/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.lczyfz.wisdom.modules.platform.entity;

import com.lczyfz.wisdom.common.persistence.DataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

/**
 * puserEntity
 * @author css
 * @version 2019-09-26
 */
@ApiModel(value="用户")
public class PUser extends DataEntity<PUser> {
	
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "用户名",name = "name",required = true,example = "张三")
	private String name;		// 用户名称
	@ApiModelProperty(value = "用户名",name = "name",required = true,example = "123456")
	private String password;		// 用户密码
	@ApiModelProperty(value = "用户移动电话",name = "mobile",required = true,example = "21921289128")
	private String mobile;		// 移动电话
	@ApiModelProperty(value = "验证码",name = "verifyCode",required = true,example = "676799")
	private String verifyCode;
	@ApiModelProperty(value = "用户注册前会发送短信验证码,将&前的字符给这个属性",name="sign",required = true,example = "68A29E16F5D665EAE2225B7F24FD9782")
	private String sign;
	@ApiModelProperty(value = "用户注册前会发送短信验证码,将stamp=后的字符串给这个属性",name = "stamp",required = true,example = "2382938292")
	private String stamp;
	
	public PUser() {
		super();
	}

	public PUser(String id){
		super(id);
	}

	public PUser(String id,String mobile){

		this.mobile = mobile;
	}

	@Length(min=1, max=255, message="用户名称长度必须介于 1 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=255, message="移动电话长度必须介于 1 和 255 之间")
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getVerifyCode() {
		return verifyCode;
	}

	public void setVerifyCode(String verifyCode) {
		this.verifyCode = verifyCode;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getStamp() {
		return stamp;
	}

	public void setStamp(String stamp) {
		this.stamp = stamp;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
}